#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>

int main(){

    uint32_t port = 0x1234;
    printf("%#x\n",port);
	printf("%#x\n",htons(port));

	// string ip => int
	in_addr_t addr = inet_addr("192.168.0.1");
	printf("%#x\n",addr);



    return 0;
}
